package com.sanpu.kxe.business.login.adapter;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.sanpu.kxe.business.login.view.ScreenSlideFragment;

/**
 * Description：引导页
 * Created by 薛勇军 on 2019/3/30.
 */

public class WelcomePagerAdapter extends FragmentStatePagerAdapter {

    public WelcomePagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        ScreenSlideFragment fragment = new ScreenSlideFragment();
        Bundle args = new Bundle();
        args.putInt("position", position);
        fragment.setArguments(args);

        return fragment;
    }

    @Override
    public int getCount() {
        return 2;
    }
}
